SPEED=$1
BUFFER_SIZE=$2
mmdelay=$3
mmloss=$4
cc_name=$5

sudo ethtool -K enp1s0f0 gso off
sudo ethtool -K enp1s0f0 tso off
sudo ethtool -K enp1s0f0 gso off
sudo ethtool -K enp1s0f0 tso off
sudo sysctl -w net.ipv4.tcp_sack=0


sudo ifconfig enp1s0f0 mtu 1500 up

# sudo tcpdump -i enp1s0f0 -s 61 dst 172.26.191.88 -w iperf_server_${SPEED}_${BUFFER_SIZE}_${mmdelay}_${mmloss}_${cc_name}.pcap &
sleep 1

sudo iperf3 -s &
sleep 35
sudo pkill -9 iperf3
# sleep 1
# sudo pkill -9 tcpdump